package com.song.guli.service.cms.feign;

/**
 * @author 宋超
 * HP - the login name of the current user.
 * 2021/4/23 - the current system date.
 * 15:14 - the current system time.
 */

import com.song.guli.common.base.result.R;
import com.song.guli.service.cms.feign.fallback.OssFileServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Service
@FeignClient(value = "service-oss", fallback = OssFileServiceFallBack.class)
public interface OssFileService {

    @DeleteMapping("/admin/oss/file/remove")
    R removeFile(@RequestBody String url);
}
